{template header}
<style type="text/css">
    body{ background-color: #fff; }
    .sfz_box img{ max-height: 167px; }
</style>

<body>
    <!-- S header -->
    <header class="alliance_details_header">
        <a href="javascript:;" onClick="javascript :history.back(-1);" class="headerL iconfont">&#xe66a;</a>
        <h1>银行卡绑定</h1>
    </header>
    <!-- E header -->
    <form class="registerform" action="{U('User/user/bank')}" method="post" >
    <ul class="change_num_box">
        <li class="flex">
            <label class="label">卡号</label>
            <div class="flex-1 input_box"><input type="text" name="banknum" value="<?php echo $this->userinfo['banknum'];?>"  placeholder="请输入您的银行卡卡号" datatype="*"  nullmsg='请输入您的银行卡卡号' ></div>

        </li>

        <li class="flex">
            <label class="label">开户行</label>
            <div class="flex-1 input_box"><input type="text" name="bankaddress" value="<?php echo $this->userinfo['bankaddress'];?>"  placeholder="请输入银行卡开户行" datatype="*"  nullmsg='请输入银行卡开户行' ></div>

        </li>

    </ul>
    </form>



    <a href="javascript:;" class="service_affirm_btn"  onclick="submitForm();">确认</a>
</body>



<link href="/statics/js/webuploader/webuploader.css" rel="stylesheet" />
<script src="/statics/js/webuploader/webuploader.js" type="text/javascript"></script>
<script type="text/javascript">



    var inx;
    function submitForm(){
        layer.open({type: 2});
        $(".registerform").submit();


    }


    $(".registerform").Validform({
            tiptype:function(msg,o,cssctl){

                if(o.type==3){
                    layer.closeAll();
                    //$(".errmsg").text(msg).show();
                    tips(msg);
                    return false;
                }
                if(o.type==1){
                    o.obj.addClass("Validform_success")
                }
            },
            ajaxPost: true,
            callback: function(ret) {
                layer.closeAll();
                if (ret.status == 0) {
                    //$(".errmsg").text(ret.info).show();
                    tips(ret.info);
                } else {
                    layer.open({
                        content: ret.info
                        ,skin: 'msg'
                        ,time: 2
                        ,end:function(){
                            location.href = "{U('user/index/setting')}";
                        }
                    });
                }
            }
    });



</script>
</html>